From c74d7afce5c62536798b1980f7780be75417bfa9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 7 Feb 2023 19:22:54 -0500 Subject: [PATCH] gsk: Don't limit filters too much GL does not allow mipmapping for mag filters, but it doesn't have a problem with it for min filters. --- gsk/gl/gskglcommandqueue.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gsk/gl/gskglcommandqueue.c b/gsk/gl/gskglcommandqueue.c index 8a1f9c84b0..37f3243c4b 100644 --- a/gsk/gl/gskglcommandqueue.c +++ b/gsk/gl/gskglcommandqueue.c @@ -1439,8 +1439,7 @@ gsk_gl_command_queue_upload_texture (GskGLCommandQueue *self, g_assert (GSK_IS_GL_COMMAND_QUEUE (self)); g_assert (!GDK_IS_GL_TEXTURE (texture)); - g_assert (min_filter == GL_LINEAR || min_filter == GL_NEAREST); - g_assert (mag_filter == GL_LINEAR || min_filter == GL_NEAREST); + g_assert (mag_filter == GL_LINEAR || mag_filter == GL_NEAREST); width = gdk_texture_get_width (texture); height = gdk_texture_get_height (texture); -- 2.30.2